﻿using Autofac;
using BLL;
using DAO;
using IBLL;
using IDAO;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace T11
{
    public class IcoCreate
    {
        public static IContainer CreatIoc()
        {
            ContainerBuilder builder = new ContainerBuilder();
            builder.RegisterType<StudentBLL>().As<IStudentBLL>().PropertiesAutowired();
            builder.RegisterType<Student>().As<IStudentDAO>().PropertiesAutowired();
            return builder.Build();
        }
    }
}
